package com.anycl.design.behavioral.interpreter;

/**
 * 终结符（参数构造类）
 */
public class TerminalExpression extends AbstractExpression {
    private Integer arg;

    public TerminalExpression(Integer arg) {
        this.arg = arg;
    }

    @Override
    int interpreter(Context context) {
        return this.arg;
    }
}
